package com.a100.equipment.service;

import com.a100.equipment.entity.EquCategory;
import com.a100.equipment.entity.vo.CreateCategoryVo;
import com.a100.equipment.entity.vo.PageCategoryVo;
import com.a100.equipment.entity.vo.UpdateCategoryVo;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.HashMap;
import java.util.List;

/**
 * <p>
 * 设备分类 服务类
 * </p>
 *
 * @author index
 * @since 2021-12-02
 */
public interface EquCategoryService extends IService<EquCategory> {
    //新增设备类别
    boolean saveEquCategoryByVo(CreateCategoryVo createCategoryVo);
    //修改设备类别
    boolean updateEquCategoryByVo(UpdateCategoryVo updateCategoryVo);
    //条件分页查询所有分类
    HashMap<String, Object> listPageByQuery(Integer current, Integer pagesize, PageCategoryVo pageCategoryVo);
    //根据id查询类型
    EquCategory chooseEquCategoryById(String equCategoryId);
    //查询所有分类
    List<EquCategory> chooseAllEquCategory();
}
